package com.xiaoshuo;

import com.xiaoshuo.fictionUtiles.FictionSearchUtils;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.AutoConfigurationPackage;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@ServletComponentScan("com.xiaoshuo")
public class FictionApplication {
    public static void main(String[] args) {
        SpringApplication.run(FictionApplication.class, args);

    }

    @Bean()
    public FictionSearchUtils getFiction() {
        return new FictionSearchUtils();
    }
}
